package serverside;

/**
 *
 * @author AbdallaEssam
 */
public abstract class Transaction {

    private int cardID;
    private DatabasePack.BankDatabase bankdatabase;
    private Screen screen;
    public Transaction(int _cardID, DatabasePack.BankDatabase atmBankDatabase,
            Screen atmScreen) {
        cardID = _cardID;
        bankdatabase = atmBankDatabase;
        screen = atmScreen;
    }

    public int getCardID() {
        return cardID;
    }

    public DatabasePack.BankDatabase getBankDatabase() {
        return bankdatabase;
    }

    public Screen getScreen() {
        return screen;
    }

    abstract public void execute();
}
